-- GENERATED SPELL FOR [Ymirjar Harpooner] --


function spell0_26692(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(49092,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26692', 3343, 1)
end

function spell1_26692(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(49091,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26692', 571, 1)
end

function Sorts_26692(pUnit, Event)
local choix_sorts_26692 = math.random(0, 1)
if choix_sorts_26692 == 0 then
pUnit:RegisterEvent('spell0_26692', 1, 1)
end
if choix_sorts_26692 == 1 then
pUnit:RegisterEvent('spell1_26692', 1, 1)
end
end

function mob26692_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26692', math.random(1500, 3000), 1)
end

function mob26692_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26692_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26692_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26692, 1, 'mob26692_Action')
RegisterUnitEvent(26692, 2, 'mob26692_Leave')
RegisterUnitEvent(26692, 3, 'mob26692_Kill')
RegisterUnitEvent(26692, 4, 'mob26692_Die')
